#ifndef LOOP_H
#define LOOP_H

#include "Node.h"
#include "StatementList.h"

class Loop : public Node // A node with two children, used for while, for, etc
{
	public:
		Loop(Node * Condition, Node * Block): condition(Condition), block(Block) {}
		~Loop() { delete(condition); delete(block); }
		Node * getCondition() const;
		Node * getBlock() const;
	private:
		Node * condition;
		Node * block;
};

#endif

